#include <iostream>
using namespace std;
//*Two distinct reference counting interface
class RefCounted
{
public:
	virtual void IncRef() = 0;
	virtual bool DecRef() = 0;
	virtual ~RefCounted() {cout<<"RefCounted"<<endl;}
};

class Widget
{
public:
	void AddReference();
	int RemoveReference();
};